{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": []
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    }
  },
  "cells": [
    {
      "cell_type": "code",
      "source": [
        "!gdown 1uXiumfEKTQc3h1Be1XlDMpFWiska-qT_"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "oJGIvcUVQXxJ",
        "outputId": "ca9f1fb3-7404-47b2-cba1-41ad990911e1"
      },
      "execution_count": 25,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "Downloading...\n",
            "From: https://drive.google.com/uc?id=1uXiumfEKTQc3h1Be1XlDMpFWiska-qT_\n",
            "To: /content/regression_data.csv\n",
            "\r  0% 0.00/187k [00:00<?, ?B/s]\r100% 187k/187k [00:00<00:00, 94.6MB/s]\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "import pandas as pd\n",
        "data = pd.read_csv(\"regression_data.csv\")\n",
        "# data.drop(columns=['Moving TTR (window=500)',\n",
        "#        'Flesch-Kincaid Grade', \"Segment\", \"Year_y\"], inplace=True)\n",
        "# data.to_csv(\"regression_data.csv\", index=False)"
      ],
      "metadata": {
        "id": "UcfInQ4RUKYp"
      },
      "execution_count": 27,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "# Table 2 in the supplementary material\n",
        "import pandas as pd\n",
        "\n",
        "# Compute summary statistics\n",
        "summary = data.describe().T  # Transpose so that variables are in rows\n",
        "\n",
        "# Generate LaTeX table\n",
        "latex_code = summary.to_latex(float_format=\"%.2f\")  # Format floats to 2 decimal places\n",
        "\n",
        "# Print or save\n",
        "print(latex_code)  # You can also save it using `with open(\"summary.tex\", \"w\") as f: f.write(latex_code)`\n"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "an6UxXndDlDO",
        "outputId": "01d724ee-8a93-4aad-d2af-8b397560b9f9"
      },
      "execution_count": 28,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "\\begin{tabular}{lrrrrrrrr}\n",
            "\\toprule\n",
            " & count & mean & std & min & 25% & 50% & 75% & max \\\\\n",
            "\\midrule\n",
            "Year_x & 308.00 & 1907.66 & 67.58 & 1789.00 & 1849.00 & 1909.00 & 1970.25 & 2025.00 \\\\\n",
            "Left & 308.00 & 0.01 & 0.06 & 0.00 & 0.00 & 0.00 & 0.00 & 0.96 \\\\\n",
            "Right & 308.00 & 0.01 & 0.04 & 0.00 & 0.00 & 0.00 & 0.01 & 0.76 \\\\\n",
            "Anti-elitism & 308.00 & 0.04 & 0.15 & 0.00 & 0.00 & 0.01 & 0.02 & 0.99 \\\\\n",
            "People-centrism & 308.00 & 0.42 & 0.39 & 0.00 & 0.02 & 0.29 & 0.87 & 1.00 \\\\\n",
            "WC & 308.00 & 6966.12 & 5817.26 & 135.00 & 2875.00 & 5204.00 & 9036.00 & 34035.00 \\\\\n",
            "Analytic & 308.00 & 90.18 & 9.04 & 57.85 & 86.80 & 93.72 & 96.50 & 99.00 \\\\\n",
            "Clout & 308.00 & 70.91 & 12.84 & 38.33 & 59.89 & 69.37 & 82.11 & 96.72 \\\\\n",
            "Authentic & 308.00 & 21.69 & 9.97 & 2.49 & 14.54 & 18.46 & 27.72 & 50.14 \\\\\n",
            "Tone & 308.00 & 68.17 & 16.06 & 9.46 & 59.46 & 67.75 & 78.68 & 99.00 \\\\\n",
            "WPS & 308.00 & 29.28 & 9.39 & 11.84 & 20.92 & 29.05 & 36.16 & 62.73 \\\\\n",
            "Sixltr & 308.00 & 25.53 & 3.20 & 15.59 & 23.49 & 25.89 & 27.62 & 33.80 \\\\\n",
            "Dic & 308.00 & 84.01 & 2.95 & 76.54 & 81.94 & 83.99 & 86.10 & 90.55 \\\\\n",
            "function & 308.00 & 52.48 & 3.23 & 41.22 & 50.39 & 53.16 & 54.95 & 59.45 \\\\\n",
            "pronoun & 308.00 & 10.23 & 2.41 & 4.98 & 8.27 & 10.00 & 11.91 & 17.35 \\\\\n",
            "ppron & 308.00 & 5.15 & 2.15 & 1.83 & 3.31 & 4.86 & 6.82 & 11.79 \\\\\n",
            "i & 308.00 & 0.97 & 0.77 & 0.07 & 0.51 & 0.79 & 1.16 & 6.67 \\\\\n",
            "we & 308.00 & 2.56 & 1.76 & 0.00 & 1.06 & 2.01 & 3.88 & 7.95 \\\\\n",
            "you & 308.00 & 0.30 & 0.35 & 0.00 & 0.06 & 0.17 & 0.42 & 1.84 \\\\\n",
            "shehe & 308.00 & 0.31 & 0.27 & 0.00 & 0.13 & 0.26 & 0.40 & 2.08 \\\\\n",
            "they & 308.00 & 1.01 & 0.43 & 0.00 & 0.70 & 0.97 & 1.26 & 3.55 \\\\\n",
            "ipron & 308.00 & 5.08 & 0.90 & 2.42 & 4.45 & 5.04 & 5.68 & 8.11 \\\\\n",
            "article & 308.00 & 9.67 & 1.88 & 5.98 & 8.17 & 9.66 & 11.35 & 13.98 \\\\\n",
            "prep & 308.00 & 17.16 & 2.06 & 12.28 & 15.63 & 17.44 & 18.91 & 20.90 \\\\\n",
            "auxverb & 308.00 & 7.43 & 0.99 & 4.75 & 6.73 & 7.34 & 8.02 & 11.94 \\\\\n",
            "adverb & 308.00 & 2.71 & 0.60 & 1.41 & 2.31 & 2.58 & 3.06 & 5.08 \\\\\n",
            "conj & 308.00 & 5.96 & 0.83 & 3.70 & 5.37 & 5.83 & 6.45 & 9.56 \\\\\n",
            "negate & 308.00 & 1.08 & 0.41 & 0.00 & 0.81 & 1.02 & 1.25 & 2.58 \\\\\n",
            "verb & 308.00 & 10.80 & 1.84 & 6.91 & 9.46 & 10.49 & 11.89 & 17.50 \\\\\n",
            "adj & 308.00 & 4.65 & 0.77 & 0.74 & 4.12 & 4.58 & 5.18 & 6.68 \\\\\n",
            "compare & 308.00 & 2.32 & 0.48 & 0.00 & 2.00 & 2.25 & 2.57 & 4.16 \\\\\n",
            "interrog & 308.00 & 1.36 & 0.43 & 0.47 & 1.05 & 1.32 & 1.67 & 3.07 \\\\\n",
            "number & 308.00 & 1.68 & 1.12 & 0.00 & 0.81 & 1.54 & 2.24 & 6.11 \\\\\n",
            "quant & 308.00 & 2.28 & 0.46 & 1.15 & 1.96 & 2.24 & 2.57 & 4.21 \\\\\n",
            "affect & 308.00 & 5.90 & 1.37 & 3.71 & 4.81 & 5.60 & 6.82 & 10.15 \\\\\n",
            "posemo & 308.00 & 4.11 & 1.05 & 2.05 & 3.32 & 3.87 & 4.75 & 7.83 \\\\\n",
            "negemo & 308.00 & 1.73 & 0.66 & 0.46 & 1.29 & 1.58 & 2.00 & 4.10 \\\\\n",
            "anx & 308.00 & 0.30 & 0.16 & 0.00 & 0.20 & 0.27 & 0.36 & 1.25 \\\\\n",
            "anger & 308.00 & 0.61 & 0.44 & 0.07 & 0.35 & 0.49 & 0.70 & 2.91 \\\\\n",
            "sad & 308.00 & 0.31 & 0.15 & 0.00 & 0.22 & 0.27 & 0.36 & 1.15 \\\\\n",
            "social & 308.00 & 7.74 & 2.66 & 3.79 & 5.58 & 7.05 & 9.62 & 14.47 \\\\\n",
            "family & 308.00 & 0.11 & 0.16 & 0.00 & 0.02 & 0.05 & 0.12 & 0.83 \\\\\n",
            "friend & 308.00 & 0.17 & 0.12 & 0.00 & 0.09 & 0.15 & 0.22 & 0.74 \\\\\n",
            "female & 308.00 & 0.11 & 0.14 & 0.00 & 0.02 & 0.06 & 0.14 & 0.81 \\\\\n",
            "male & 308.00 & 0.46 & 0.33 & 0.02 & 0.24 & 0.39 & 0.56 & 2.54 \\\\\n",
            "cogproc & 308.00 & 9.88 & 1.36 & 6.83 & 9.02 & 9.71 & 10.81 & 14.44 \\\\\n",
            "insight & 308.00 & 1.81 & 0.42 & 0.74 & 1.51 & 1.79 & 2.06 & 3.21 \\\\\n",
            "cause & 308.00 & 1.85 & 0.39 & 0.00 & 1.64 & 1.85 & 2.10 & 3.39 \\\\\n",
            "discrep & 308.00 & 1.43 & 0.47 & 0.45 & 1.09 & 1.35 & 1.74 & 3.03 \\\\\n",
            "tentat & 308.00 & 1.81 & 0.51 & 0.56 & 1.46 & 1.80 & 2.09 & 4.22 \\\\\n",
            "certain & 308.00 & 1.84 & 0.54 & 0.98 & 1.40 & 1.72 & 2.11 & 3.92 \\\\\n",
            "differ & 308.00 & 2.51 & 0.63 & 1.04 & 2.08 & 2.48 & 2.84 & 5.11 \\\\\n",
            "percept & 308.00 & 0.85 & 0.40 & 0.10 & 0.60 & 0.74 & 1.02 & 2.82 \\\\\n",
            "see & 308.00 & 0.35 & 0.18 & 0.00 & 0.24 & 0.31 & 0.40 & 1.27 \\\\\n",
            "hear & 308.00 & 0.21 & 0.19 & 0.00 & 0.09 & 0.15 & 0.27 & 1.22 \\\\\n",
            "feel & 308.00 & 0.19 & 0.12 & 0.00 & 0.11 & 0.16 & 0.24 & 1.11 \\\\\n",
            "bio & 308.00 & 0.83 & 0.37 & 0.22 & 0.55 & 0.74 & 1.06 & 2.34 \\\\\n",
            "body & 308.00 & 0.21 & 0.14 & 0.00 & 0.13 & 0.17 & 0.25 & 0.91 \\\\\n",
            "health & 308.00 & 0.49 & 0.30 & 0.00 & 0.29 & 0.41 & 0.65 & 1.88 \\\\\n",
            "sexual & 308.00 & 0.03 & 0.04 & 0.00 & 0.00 & 0.02 & 0.04 & 0.28 \\\\\n",
            "ingest & 308.00 & 0.12 & 0.10 & 0.00 & 0.07 & 0.10 & 0.15 & 0.74 \\\\\n",
            "drives & 308.00 & 11.42 & 2.82 & 7.08 & 8.92 & 10.90 & 13.87 & 17.84 \\\\\n",
            "affiliation & 308.00 & 3.63 & 2.08 & 0.00 & 1.78 & 3.06 & 5.39 & 9.19 \\\\\n",
            "achieve & 308.00 & 2.20 & 0.68 & 1.10 & 1.64 & 2.06 & 2.73 & 3.99 \\\\\n",
            "power & 308.00 & 4.61 & 0.73 & 1.77 & 4.10 & 4.62 & 5.07 & 6.67 \\\\\n",
            "reward & 308.00 & 1.26 & 0.37 & 0.43 & 1.00 & 1.21 & 1.46 & 2.85 \\\\\n",
            "risk & 308.00 & 0.96 & 0.28 & 0.00 & 0.77 & 0.94 & 1.13 & 1.85 \\\\\n",
            "focuspast & 308.00 & 2.44 & 0.74 & 0.59 & 1.91 & 2.47 & 2.90 & 4.72 \\\\\n",
            "focuspresent & 308.00 & 7.05 & 1.74 & 3.59 & 5.75 & 6.77 & 8.22 & 12.74 \\\\\n",
            "focusfuture & 308.00 & 1.56 & 0.52 & 0.58 & 1.17 & 1.50 & 1.88 & 4.00 \\\\\n",
            "relativ & 308.00 & 12.49 & 1.97 & 7.36 & 11.17 & 12.16 & 14.12 & 17.17 \\\\\n",
            "motion & 308.00 & 1.36 & 0.46 & 0.34 & 1.04 & 1.29 & 1.70 & 3.34 \\\\\n",
            "space & 308.00 & 7.01 & 0.91 & 3.93 & 6.46 & 7.02 & 7.63 & 9.50 \\\\\n",
            "time & 308.00 & 4.17 & 1.13 & 1.53 & 3.37 & 4.07 & 4.85 & 7.79 \\\\\n",
            "work & 308.00 & 4.91 & 1.49 & 1.33 & 3.92 & 4.76 & 5.78 & 10.22 \\\\\n",
            "leisure & 308.00 & 0.29 & 0.17 & 0.00 & 0.19 & 0.26 & 0.35 & 1.48 \\\\\n",
            "home & 308.00 & 0.26 & 0.18 & 0.00 & 0.14 & 0.20 & 0.34 & 1.06 \\\\\n",
            "money & 308.00 & 1.61 & 0.84 & 0.00 & 1.02 & 1.48 & 2.09 & 4.89 \\\\\n",
            "relig & 308.00 & 0.34 & 0.28 & 0.00 & 0.16 & 0.26 & 0.40 & 1.95 \\\\\n",
            "death & 308.00 & 0.25 & 0.23 & 0.00 & 0.13 & 0.20 & 0.31 & 1.71 \\\\\n",
            "informal & 308.00 & 0.15 & 0.10 & 0.00 & 0.10 & 0.13 & 0.19 & 0.73 \\\\\n",
            "swear & 308.00 & 0.01 & 0.01 & 0.00 & 0.00 & 0.00 & 0.01 & 0.08 \\\\\n",
            "netspeak & 308.00 & 0.01 & 0.03 & 0.00 & 0.00 & 0.00 & 0.01 & 0.28 \\\\\n",
            "assent & 308.00 & 0.04 & 0.05 & 0.00 & 0.00 & 0.02 & 0.05 & 0.62 \\\\\n",
            "nonflu & 308.00 & 0.10 & 0.07 & 0.00 & 0.06 & 0.09 & 0.13 & 0.42 \\\\\n",
            "filler & 308.00 & 0.00 & 0.00 & 0.00 & 0.00 & 0.00 & 0.00 & 0.01 \\\\\n",
            "AllPunc & 308.00 & 10.89 & 2.68 & 6.16 & 8.96 & 10.25 & 12.18 & 22.40 \\\\\n",
            "Period & 308.00 & 3.84 & 1.46 & 1.42 & 2.73 & 3.42 & 4.85 & 15.35 \\\\\n",
            "Comma & 308.00 & 5.11 & 1.00 & 2.43 & 4.44 & 5.12 & 5.72 & 9.09 \\\\\n",
            "Colon & 308.00 & 0.12 & 0.15 & 0.00 & 0.03 & 0.06 & 0.17 & 1.48 \\\\\n",
            "SemiC & 308.00 & 0.28 & 0.21 & 0.00 & 0.13 & 0.22 & 0.38 & 1.36 \\\\\n",
            "QMark & 308.00 & 0.04 & 0.08 & 0.00 & 0.00 & 0.00 & 0.06 & 0.60 \\\\\n",
            "Exclam & 308.00 & 0.01 & 0.04 & 0.00 & 0.00 & 0.00 & 0.00 & 0.46 \\\\\n",
            "Dash & 308.00 & 0.71 & 0.74 & 0.00 & 0.31 & 0.46 & 0.76 & 5.13 \\\\\n",
            "Quote & 308.00 & 0.14 & 0.17 & 0.00 & 0.02 & 0.09 & 0.20 & 0.82 \\\\\n",
            "Apostro & 308.00 & 0.37 & 0.64 & 0.00 & 0.04 & 0.11 & 0.36 & 3.55 \\\\\n",
            "Parenth & 308.00 & 0.05 & 0.24 & 0.00 & 0.00 & 0.00 & 0.04 & 3.83 \\\\\n",
            "OtherP & 308.00 & 0.22 & 0.23 & 0.00 & 0.02 & 0.17 & 0.34 & 1.87 \\\\\n",
            "\\bottomrule\n",
            "\\end{tabular}\n",
            "\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "len(data)"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "JH0Z1NWrVKcB",
        "outputId": "9fdada00-a738-4046-b9ba-43447b584d22"
      },
      "execution_count": 29,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "308"
            ]
          },
          "metadata": {},
          "execution_count": 29
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "# this cell prints out all the coefficients\n",
        "import statsmodels.api as sm\n",
        "\n",
        "for y_col in ['Left', 'Right', 'Anti-elitism', 'People-centrism']:\n",
        "  X = data[['Year_x', 'WC', 'Analytic', 'Clout', 'Authentic', 'Tone', 'WPS', 'Sixltr', 'Dic', 'function', 'pronoun', 'ppron', 'i', 'we', 'you', 'shehe', 'they', 'ipron', 'article', 'prep', 'auxverb', 'adverb', 'conj', 'negate', 'verb', 'adj', 'compare', 'interrog', 'number', 'quant', 'affect', 'posemo', 'negemo', 'anx', 'anger', 'sad', 'social', 'family', 'friend', 'female', 'male', 'cogproc', 'insight', 'cause', 'discrep', 'tentat', 'certain', 'differ', 'percept', 'see', 'hear', 'feel', 'bio', 'body', 'health', 'sexual', 'ingest', 'drives', 'affiliation', 'achieve', 'power', 'reward', 'risk', 'focuspast', 'focuspresent', 'focusfuture', 'relativ', 'motion', 'space', 'time', 'work', 'leisure', 'home', 'money', 'relig', 'death', 'informal', 'swear', 'netspeak', 'assent', 'nonflu', 'filler', 'AllPunc', 'Period', 'Comma', 'Colon', 'SemiC', 'QMark', 'Exclam', 'Dash', 'Quote', 'Apostro', 'Parenth', 'OtherP']]\n",
        "  Y = data[y_col]\n",
        "\n",
        "  # Add constant to X (for the intercept)\n",
        "  X = sm.add_constant(X)\n",
        "\n",
        "  # Fit the model\n",
        "  model = sm.OLS(Y, X).fit()\n",
        "\n",
        "  # Print the summary of the regression results\n",
        "  print(\"===\" * 10)\n",
        "  print(\"Dependent Variable:\", y_col)\n",
        "  print(model.summary())"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "xoKpEPaSU-RP",
        "outputId": "b8bb3519-2dc5-438e-9442-85876f5ea828"
      },
      "execution_count": 31,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "==============================\n",
            "Dependent Variable: Left\n",
            "                            OLS Regression Results                            \n",
            "==============================================================================\n",
            "Dep. Variable:                   Left   R-squared:                       0.331\n",
            "Model:                            OLS   Adj. R-squared:                  0.036\n",
            "Method:                 Least Squares   F-statistic:                     1.121\n",
            "Date:                Mon, 19 Jan 2026   Prob (F-statistic):              0.248\n",
            "Time:                        17:31:16   Log-Likelihood:                 489.06\n",
            "No. Observations:                 308   AIC:                            -788.1\n",
            "Df Residuals:                     213   BIC:                            -433.8\n",
            "Df Model:                          94                                         \n",
            "Covariance Type:            nonrobust                                         \n",
            "================================================================================\n",
            "                   coef    std err          t      P>|t|      [0.025      0.975]\n",
            "--------------------------------------------------------------------------------\n",
            "const           -0.9883      0.867     -1.140      0.256      -2.698       0.721\n",
            "Year_x           0.0004      0.000      1.438      0.152      -0.000       0.001\n",
            "WC            1.881e-06   9.65e-07      1.949      0.053   -2.13e-08    3.78e-06\n",
            "Analytic         0.0003      0.002      0.135      0.893      -0.004       0.004\n",
            "Clout            0.0004      0.003      0.112      0.911      -0.006       0.007\n",
            "Authentic       -0.0016      0.003     -0.553      0.581      -0.007       0.004\n",
            "Tone            -0.0008      0.001     -0.588      0.557      -0.003       0.002\n",
            "WPS              0.0002      0.001      0.147      0.883      -0.003       0.003\n",
            "Sixltr           0.0021      0.005      0.452      0.651      -0.007       0.011\n",
            "Dic             -0.0034      0.008     -0.420      0.675      -0.019       0.013\n",
            "function        -0.0072      0.022     -0.333      0.740      -0.050       0.035\n",
            "pronoun         -1.3505      0.875     -1.543      0.124      -3.076       0.374\n",
            "ppron            1.5140      0.912      1.660      0.098      -0.284       3.311\n",
            "i               -0.1525      0.572     -0.267      0.790      -1.279       0.974\n",
            "we              -0.1592      0.575     -0.277      0.782      -1.293       0.974\n",
            "you             -0.1509      0.573     -0.263      0.793      -1.281       0.979\n",
            "shehe           -0.1865      0.575     -0.325      0.746      -1.319       0.946\n",
            "they            -0.1553      0.572     -0.272      0.786      -1.282       0.971\n",
            "ipron            1.3686      0.879      1.557      0.121      -0.364       3.102\n",
            "article          0.0146      0.022      0.656      0.512      -0.029       0.059\n",
            "prep             0.0095      0.019      0.497      0.619      -0.028       0.047\n",
            "auxverb          0.0160      0.023      0.690      0.491      -0.030       0.062\n",
            "adverb           0.0312      0.020      1.587      0.114      -0.008       0.070\n",
            "conj             0.0046      0.020      0.232      0.817      -0.035       0.044\n",
            "negate           0.0121      0.032      0.376      0.708      -0.052       0.076\n",
            "verb             0.0168      0.015      1.093      0.275      -0.013       0.047\n",
            "adj             -0.0077      0.014     -0.551      0.582      -0.035       0.020\n",
            "compare          0.0014      0.018      0.082      0.934      -0.033       0.036\n",
            "interrog        -0.0075      0.018     -0.410      0.682      -0.043       0.028\n",
            "number           0.0022      0.009      0.256      0.799      -0.015       0.019\n",
            "quant            0.0150      0.017      0.894      0.372      -0.018       0.048\n",
            "affect          -0.0930      0.091     -1.024      0.307      -0.272       0.086\n",
            "posemo           0.1080      0.092      1.168      0.244      -0.074       0.290\n",
            "negemo           0.1412      0.098      1.443      0.151      -0.052       0.334\n",
            "anx             -0.0834      0.044     -1.880      0.061      -0.171       0.004\n",
            "anger           -0.0765      0.034     -2.221      0.027      -0.144      -0.009\n",
            "sad             -0.0244      0.050     -0.484      0.629      -0.124       0.075\n",
            "social           0.0047      0.015      0.323      0.747      -0.024       0.034\n",
            "family           0.0054      0.068      0.079      0.937      -0.130       0.140\n",
            "friend           0.0447      0.055      0.806      0.421      -0.065       0.154\n",
            "female           0.0316      0.055      0.571      0.569      -0.078       0.141\n",
            "male             0.0466      0.037      1.248      0.214      -0.027       0.120\n",
            "cogproc         -0.0396      0.022     -1.768      0.079      -0.084       0.005\n",
            "insight          0.0391      0.026      1.532      0.127      -0.011       0.089\n",
            "cause            0.0320      0.024      1.322      0.188      -0.016       0.080\n",
            "discrep          0.0113      0.027      0.418      0.676      -0.042       0.065\n",
            "tentat           0.0202      0.021      0.962      0.337      -0.021       0.062\n",
            "certain          0.0288      0.022      1.319      0.188      -0.014       0.072\n",
            "differ           0.0562      0.030      1.853      0.065      -0.004       0.116\n",
            "percept          0.0270      0.062      0.433      0.665      -0.096       0.150\n",
            "see              0.0017      0.069      0.024      0.981      -0.134       0.138\n",
            "hear            -0.0200      0.075     -0.268      0.789      -0.168       0.127\n",
            "feel            -0.0076      0.073     -0.105      0.916      -0.151       0.135\n",
            "bio             -0.0246      0.105     -0.234      0.816      -0.233       0.183\n",
            "body            -0.0116      0.111     -0.104      0.917      -0.230       0.207\n",
            "health           0.0385      0.107      0.360      0.719      -0.172       0.249\n",
            "sexual          -0.0221      0.126     -0.175      0.861      -0.271       0.227\n",
            "ingest          -0.0130      0.120     -0.108      0.914      -0.250       0.224\n",
            "drives           0.0136      0.024      0.568      0.570      -0.034       0.061\n",
            "affiliation     -0.0154      0.028     -0.547      0.585      -0.071       0.040\n",
            "achieve         -0.0196      0.020     -1.002      0.317      -0.058       0.019\n",
            "power           -0.0198      0.022     -0.914      0.362      -0.063       0.023\n",
            "reward           0.0248      0.023      1.089      0.277      -0.020       0.070\n",
            "risk             0.0008      0.032      0.024      0.981      -0.061       0.063\n",
            "focuspast       -0.0301      0.016     -1.938      0.054      -0.061       0.001\n",
            "focuspresent    -0.0277      0.014     -2.012      0.045      -0.055      -0.001\n",
            "focusfuture      0.0022      0.017      0.128      0.899      -0.031       0.035\n",
            "relativ         -0.0048      0.037     -0.129      0.897      -0.078       0.069\n",
            "motion          -0.0045      0.038     -0.120      0.905      -0.079       0.070\n",
            "space            0.0177      0.037      0.476      0.635      -0.056       0.091\n",
            "time             0.0134      0.037      0.358      0.721      -0.060       0.087\n",
            "work             0.0037      0.010      0.385      0.701      -0.015       0.022\n",
            "leisure         -0.0091      0.038     -0.239      0.812      -0.084       0.066\n",
            "home             0.0161      0.040      0.397      0.691      -0.064       0.096\n",
            "money            0.0042      0.010      0.415      0.679      -0.016       0.024\n",
            "relig           -0.0164      0.027     -0.617      0.538      -0.069       0.036\n",
            "death            0.0310      0.037      0.843      0.400      -0.041       0.103\n",
            "informal         2.8445      0.504      5.647      0.000       1.852       3.837\n",
            "swear           -2.8595      0.589     -4.853      0.000      -4.021      -1.698\n",
            "netspeak        -2.4195      0.540     -4.481      0.000      -3.484      -1.355\n",
            "assent          -2.8165      0.511     -5.514      0.000      -3.823      -1.810\n",
            "nonflu          -2.9822      0.520     -5.740      0.000      -4.006      -1.958\n",
            "filler          -8.1615      4.458     -1.831      0.069     -16.948       0.625\n",
            "AllPunc          0.3192      0.424      0.754      0.452      -0.516       1.154\n",
            "Period          -0.3250      0.424     -0.766      0.444      -1.161       0.511\n",
            "Comma           -0.3183      0.423     -0.752      0.453      -1.153       0.516\n",
            "Colon           -0.2868      0.425     -0.675      0.500      -1.124       0.550\n",
            "SemiC           -0.2766      0.426     -0.650      0.516      -1.115       0.562\n",
            "QMark           -0.4586      0.432     -1.063      0.289      -1.309       0.392\n",
            "Exclam          -0.3567      0.447     -0.799      0.425      -1.237       0.524\n",
            "Dash            -0.3220      0.423     -0.761      0.448      -1.157       0.513\n",
            "Quote           -0.3109      0.424     -0.733      0.464      -1.147       0.525\n",
            "Apostro         -0.3055      0.425     -0.719      0.473      -1.143       0.532\n",
            "Parenth         -0.3263      0.426     -0.766      0.445      -1.166       0.514\n",
            "OtherP          -0.3432      0.426     -0.805      0.422      -1.184       0.497\n",
            "==============================================================================\n",
            "Omnibus:                      464.944   Durbin-Watson:                   2.302\n",
            "Prob(Omnibus):                  0.000   Jarque-Bera (JB):           110790.847\n",
            "Skew:                           7.464   Prob(JB):                         0.00\n",
            "Kurtosis:                      94.707   Cond. No.                     1.21e+07\n",
            "==============================================================================\n",
            "\n",
            "Notes:\n",
            "[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.\n",
            "[2] The condition number is large, 1.21e+07. This might indicate that there are\n",
            "strong multicollinearity or other numerical problems.\n",
            "==============================\n",
            "Dependent Variable: Right\n",
            "                            OLS Regression Results                            \n",
            "==============================================================================\n",
            "Dep. Variable:                  Right   R-squared:                       0.903\n",
            "Model:                            OLS   Adj. R-squared:                  0.860\n",
            "Method:                 Least Squares   F-statistic:                     21.05\n",
            "Date:                Mon, 19 Jan 2026   Prob (F-statistic):           3.63e-71\n",
            "Time:                        17:31:16   Log-Likelihood:                 881.42\n",
            "No. Observations:                 308   AIC:                            -1573.\n",
            "Df Residuals:                     213   BIC:                            -1218.\n",
            "Df Model:                          94                                         \n",
            "Covariance Type:            nonrobust                                         \n",
            "================================================================================\n",
            "                   coef    std err          t      P>|t|      [0.025      0.975]\n",
            "--------------------------------------------------------------------------------\n",
            "const            0.1432      0.243      0.590      0.556      -0.335       0.621\n",
            "Year_x       -9.447e-05    8.2e-05     -1.152      0.251      -0.000    6.72e-05\n",
            "WC            4.292e-08    2.7e-07      0.159      0.874   -4.89e-07    5.75e-07\n",
            "Analytic     -6.625e-06      0.001     -0.012      0.991      -0.001       0.001\n",
            "Clout         2.577e-05      0.001      0.029      0.977      -0.002       0.002\n",
            "Authentic       -0.0002      0.001     -0.272      0.786      -0.002       0.001\n",
            "Tone             0.0002      0.000      0.450      0.653      -0.001       0.001\n",
            "WPS             -0.0002      0.000     -0.462      0.645      -0.001       0.001\n",
            "Sixltr          -0.0010      0.001     -0.749      0.455      -0.004       0.002\n",
            "Dic              0.0030      0.002      1.324      0.187      -0.001       0.008\n",
            "function         0.0107      0.006      1.775      0.077      -0.001       0.023\n",
            "pronoun          0.2247      0.245      0.918      0.360      -0.258       0.707\n",
            "ppron           -0.2718      0.255     -1.066      0.288      -0.775       0.231\n",
            "i                0.0350      0.160      0.219      0.827      -0.280       0.350\n",
            "we               0.0347      0.161      0.216      0.829      -0.282       0.352\n",
            "you              0.0269      0.160      0.167      0.867      -0.289       0.343\n",
            "shehe            0.0326      0.161      0.203      0.840      -0.284       0.349\n",
            "they             0.0339      0.160      0.212      0.832      -0.281       0.349\n",
            "ipron           -0.2385      0.246     -0.970      0.333      -0.723       0.246\n",
            "article         -0.0136      0.006     -2.176      0.031      -0.026      -0.001\n",
            "prep            -0.0140      0.005     -2.618      0.009      -0.024      -0.003\n",
            "auxverb         -0.0118      0.006     -1.824      0.069      -0.025       0.001\n",
            "adverb          -0.0141      0.006     -2.566      0.011      -0.025      -0.003\n",
            "conj            -0.0053      0.006     -0.954      0.341      -0.016       0.006\n",
            "negate          -0.0135      0.009     -1.488      0.138      -0.031       0.004\n",
            "verb             0.0023      0.004      0.537      0.592      -0.006       0.011\n",
            "adj             -0.0021      0.004     -0.539      0.590      -0.010       0.006\n",
            "compare          0.0093      0.005      1.884      0.061      -0.000       0.019\n",
            "interrog        -0.0041      0.005     -0.801      0.424      -0.014       0.006\n",
            "number          -0.0003      0.002     -0.138      0.890      -0.005       0.004\n",
            "quant           -0.0046      0.005     -0.973      0.332      -0.014       0.005\n",
            "affect           0.0250      0.025      0.983      0.326      -0.025       0.075\n",
            "posemo          -0.0320      0.026     -1.236      0.218      -0.083       0.019\n",
            "negemo          -0.0184      0.027     -0.671      0.503      -0.072       0.036\n",
            "anx             -0.0066      0.012     -0.529      0.598      -0.031       0.018\n",
            "anger           -0.0058      0.010     -0.602      0.548      -0.025       0.013\n",
            "sad              0.0043      0.014      0.301      0.763      -0.024       0.032\n",
            "social          -0.0002      0.004     -0.041      0.967      -0.008       0.008\n",
            "family           0.0125      0.019      0.654      0.514      -0.025       0.050\n",
            "friend          -0.0181      0.016     -1.168      0.244      -0.049       0.012\n",
            "female          -0.0136      0.016     -0.877      0.381      -0.044       0.017\n",
            "male            -0.0012      0.010     -0.117      0.907      -0.022       0.019\n",
            "cogproc          0.0063      0.006      0.996      0.320      -0.006       0.019\n",
            "insight         -0.0080      0.007     -1.119      0.265      -0.022       0.006\n",
            "cause           -0.0033      0.007     -0.483      0.629      -0.017       0.010\n",
            "discrep         -0.0060      0.008     -0.784      0.434      -0.021       0.009\n",
            "tentat          -0.0153      0.006     -2.606      0.010      -0.027      -0.004\n",
            "certain         -0.0022      0.006     -0.360      0.719      -0.014       0.010\n",
            "differ          -0.0096      0.008     -1.136      0.257      -0.026       0.007\n",
            "percept         -0.0339      0.017     -1.943      0.053      -0.068       0.000\n",
            "see              0.0219      0.019      1.136      0.257      -0.016       0.060\n",
            "hear             0.0203      0.021      0.969      0.333      -0.021       0.062\n",
            "feel             0.0562      0.020      2.772      0.006       0.016       0.096\n",
            "bio              0.0288      0.030      0.975      0.331      -0.029       0.087\n",
            "body            -0.0186      0.031     -0.600      0.549      -0.080       0.043\n",
            "health          -0.0386      0.030     -1.292      0.198      -0.098       0.020\n",
            "sexual          -0.0211      0.035     -0.598      0.551      -0.091       0.049\n",
            "ingest          -0.0710      0.034     -2.109      0.036      -0.137      -0.005\n",
            "drives          -0.0118      0.007     -1.768      0.079      -0.025       0.001\n",
            "affiliation      0.0112      0.008      1.424      0.156      -0.004       0.027\n",
            "achieve         -0.0009      0.005     -0.171      0.865      -0.012       0.010\n",
            "power            0.0137      0.006      2.253      0.025       0.002       0.026\n",
            "reward           0.0077      0.006      1.208      0.228      -0.005       0.020\n",
            "risk             0.0099      0.009      1.124      0.262      -0.007       0.027\n",
            "focuspast       -0.0043      0.004     -0.978      0.329      -0.013       0.004\n",
            "focuspresent    -0.0006      0.004     -0.158      0.874      -0.008       0.007\n",
            "focusfuture     -0.0018      0.005     -0.373      0.710      -0.011       0.008\n",
            "relativ         -0.0136      0.010     -1.298      0.196      -0.034       0.007\n",
            "motion           0.0125      0.011      1.184      0.238      -0.008       0.033\n",
            "space            0.0151      0.010      1.451      0.148      -0.005       0.036\n",
            "time             0.0145      0.010      1.385      0.167      -0.006       0.035\n",
            "work            -0.0052      0.003     -1.938      0.054      -0.010    8.96e-05\n",
            "leisure         -0.0032      0.011     -0.299      0.765      -0.024       0.018\n",
            "home            -0.0051      0.011     -0.450      0.653      -0.027       0.017\n",
            "money            0.0020      0.003      0.719      0.473      -0.004       0.008\n",
            "relig            0.0055      0.007      0.736      0.463      -0.009       0.020\n",
            "death           -0.0137      0.010     -1.329      0.185      -0.034       0.007\n",
            "informal        -0.0068      0.141     -0.048      0.962      -0.285       0.271\n",
            "swear            0.0158      0.165      0.096      0.924      -0.309       0.341\n",
            "netspeak        -0.1136      0.151     -0.752      0.453      -0.411       0.184\n",
            "assent           0.0423      0.143      0.296      0.767      -0.239       0.324\n",
            "nonflu           0.0094      0.145      0.065      0.948      -0.277       0.296\n",
            "filler          -0.1553      1.247     -0.125      0.901      -2.613       2.303\n",
            "AllPunc         -0.0840      0.118     -0.709      0.479      -0.318       0.150\n",
            "Period           0.0846      0.119      0.713      0.477      -0.149       0.318\n",
            "Comma            0.0871      0.118      0.735      0.463      -0.146       0.321\n",
            "Colon            0.0112      0.119      0.094      0.925      -0.223       0.245\n",
            "SemiC            0.0800      0.119      0.672      0.502      -0.155       0.315\n",
            "QMark            0.0961      0.121      0.796      0.427      -0.142       0.334\n",
            "Exclam           0.1433      0.125      1.147      0.253      -0.103       0.390\n",
            "Dash             0.0821      0.118      0.693      0.489      -0.151       0.316\n",
            "Quote            0.0741      0.119      0.625      0.533      -0.160       0.308\n",
            "Apostro          0.0921      0.119      0.775      0.439      -0.142       0.326\n",
            "Parenth          0.2583      0.119      2.166      0.031       0.023       0.493\n",
            "OtherP           0.0926      0.119      0.776      0.438      -0.142       0.328\n",
            "==============================================================================\n",
            "Omnibus:                      142.006   Durbin-Watson:                   2.126\n",
            "Prob(Omnibus):                  0.000   Jarque-Bera (JB):             1509.313\n",
            "Skew:                           1.596   Prob(JB):                         0.00\n",
            "Kurtosis:                      13.365   Cond. No.                     1.21e+07\n",
            "==============================================================================\n",
            "\n",
            "Notes:\n",
            "[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.\n",
            "[2] The condition number is large, 1.21e+07. This might indicate that there are\n",
            "strong multicollinearity or other numerical problems.\n",
            "==============================\n",
            "Dependent Variable: Anti-elitism\n",
            "                            OLS Regression Results                            \n",
            "==============================================================================\n",
            "Dep. Variable:           Anti-elitism   R-squared:                       0.436\n",
            "Model:                            OLS   Adj. R-squared:                  0.187\n",
            "Method:                 Least Squares   F-statistic:                     1.750\n",
            "Date:                Mon, 19 Jan 2026   Prob (F-statistic):           0.000461\n",
            "Time:                        17:31:16   Log-Likelihood:                 241.04\n",
            "No. Observations:                 308   AIC:                            -292.1\n",
            "Df Residuals:                     213   BIC:                             62.29\n",
            "Df Model:                          94                                         \n",
            "Covariance Type:            nonrobust                                         \n",
            "================================================================================\n",
            "                   coef    std err          t      P>|t|      [0.025      0.975]\n",
            "--------------------------------------------------------------------------------\n",
            "const           -0.6149      1.940     -0.317      0.752      -4.439       3.210\n",
            "Year_x           0.0001      0.001      0.187      0.852      -0.001       0.001\n",
            "WC           -1.629e-06   2.16e-06     -0.754      0.451   -5.88e-06    2.63e-06\n",
            "Analytic         0.0059      0.004      1.334      0.183      -0.003       0.015\n",
            "Clout           -0.0071      0.007     -1.009      0.314      -0.021       0.007\n",
            "Authentic       -0.0075      0.007     -1.137      0.257      -0.021       0.006\n",
            "Tone            -0.0004      0.003     -0.122      0.903      -0.006       0.005\n",
            "WPS             -0.0005      0.003     -0.137      0.891      -0.007       0.006\n",
            "Sixltr          -0.0040      0.010     -0.385      0.700      -0.025       0.017\n",
            "Dic              0.0143      0.018      0.784      0.434      -0.022       0.050\n",
            "function         0.0093      0.048      0.192      0.848      -0.086       0.104\n",
            "pronoun          0.3964      1.958      0.202      0.840      -3.463       4.256\n",
            "ppron           -0.4618      2.040     -0.226      0.821      -4.483       3.560\n",
            "i                0.0607      1.279      0.048      0.962      -2.460       2.581\n",
            "we               0.1027      1.286      0.080      0.936      -2.433       2.639\n",
            "you              0.0630      1.282      0.049      0.961      -2.464       2.590\n",
            "shehe            0.2001      1.286      0.156      0.876      -2.334       2.734\n",
            "they             0.0753      1.279      0.059      0.953      -2.445       2.596\n",
            "ipron           -0.4065      1.967     -0.207      0.836      -4.284       3.471\n",
            "article         -0.0254      0.050     -0.510      0.611      -0.124       0.073\n",
            "prep            -0.0376      0.043     -0.883      0.378      -0.122       0.046\n",
            "auxverb         -0.0060      0.052     -0.116      0.908      -0.108       0.096\n",
            "adverb           0.0413      0.044      0.939      0.349      -0.045       0.128\n",
            "conj            -0.0139      0.044     -0.312      0.755      -0.101       0.074\n",
            "negate           0.0189      0.072      0.261      0.795      -0.124       0.161\n",
            "verb             0.0101      0.034      0.295      0.768      -0.057       0.078\n",
            "adj              0.0296      0.031      0.946      0.345      -0.032       0.091\n",
            "compare         -0.0325      0.039     -0.827      0.409      -0.110       0.045\n",
            "interrog        -0.0309      0.041     -0.760      0.448      -0.111       0.049\n",
            "number          -0.0094      0.020     -0.481      0.631      -0.048       0.029\n",
            "quant           -0.0015      0.037     -0.041      0.967      -0.075       0.072\n",
            "affect           0.2666      0.203      1.312      0.191      -0.134       0.667\n",
            "posemo          -0.2739      0.207     -1.325      0.187      -0.681       0.134\n",
            "negemo          -0.2434      0.219     -1.112      0.268      -0.675       0.188\n",
            "anx             -0.1059      0.099     -1.068      0.287      -0.301       0.090\n",
            "anger            0.0583      0.077      0.756      0.450      -0.094       0.210\n",
            "sad              0.0110      0.113      0.097      0.923      -0.211       0.233\n",
            "social           0.0224      0.033      0.684      0.495      -0.042       0.087\n",
            "family           0.0290      0.153      0.190      0.850      -0.273       0.331\n",
            "friend           0.0634      0.124      0.511      0.610      -0.181       0.308\n",
            "female          -0.2211      0.124     -1.783      0.076      -0.466       0.023\n",
            "male            -0.0046      0.084     -0.055      0.956      -0.169       0.160\n",
            "cogproc         -0.0555      0.050     -1.106      0.270      -0.154       0.043\n",
            "insight          0.0839      0.057      1.468      0.143      -0.029       0.196\n",
            "cause            0.0537      0.054      0.991      0.323      -0.053       0.161\n",
            "discrep         -0.0368      0.061     -0.606      0.545      -0.157       0.083\n",
            "tentat           0.0421      0.047      0.896      0.371      -0.050       0.135\n",
            "certain         -0.0013      0.049     -0.026      0.980      -0.097       0.095\n",
            "differ           0.0049      0.068      0.072      0.943      -0.129       0.139\n",
            "percept         -0.0205      0.140     -0.147      0.884      -0.296       0.255\n",
            "see              0.0164      0.154      0.107      0.915      -0.288       0.321\n",
            "hear            -0.1228      0.167     -0.734      0.464      -0.453       0.207\n",
            "feel            -0.0446      0.162     -0.275      0.784      -0.364       0.275\n",
            "bio              0.0933      0.236      0.395      0.693      -0.372       0.559\n",
            "body             0.1984      0.248      0.798      0.426      -0.291       0.688\n",
            "health          -0.1785      0.239     -0.747      0.456      -0.650       0.293\n",
            "sexual           0.0406      0.283      0.144      0.886      -0.517       0.598\n",
            "ingest          -0.3702      0.269     -1.375      0.171      -0.901       0.160\n",
            "drives          -0.0375      0.053     -0.701      0.484      -0.143       0.068\n",
            "affiliation     -0.0077      0.063     -0.122      0.903      -0.132       0.117\n",
            "achieve         -0.0219      0.044     -0.501      0.617      -0.108       0.064\n",
            "power            0.0177      0.048      0.365      0.716      -0.078       0.113\n",
            "reward           0.0788      0.051      1.545      0.124      -0.022       0.179\n",
            "risk             0.0531      0.071      0.751      0.453      -0.086       0.192\n",
            "focuspast       -0.0481      0.035     -1.383      0.168      -0.117       0.020\n",
            "focuspresent    -0.0100      0.031     -0.325      0.746      -0.071       0.051\n",
            "focusfuture     -0.0601      0.038     -1.590      0.113      -0.135       0.014\n",
            "relativ         -0.0265      0.084     -0.317      0.752      -0.191       0.138\n",
            "motion           0.0353      0.085      0.417      0.677      -0.131       0.202\n",
            "space            0.0556      0.083      0.667      0.505      -0.109       0.220\n",
            "time             0.0579      0.084      0.693      0.489      -0.107       0.223\n",
            "work             0.0014      0.021      0.066      0.948      -0.041       0.043\n",
            "leisure         -0.0416      0.085     -0.488      0.626      -0.210       0.126\n",
            "home             0.0209      0.090      0.231      0.818      -0.157       0.199\n",
            "money            0.0171      0.023      0.753      0.452      -0.028       0.062\n",
            "relig            0.0242      0.060      0.406      0.685      -0.093       0.142\n",
            "death           -0.1826      0.082     -2.222      0.027      -0.345      -0.021\n",
            "informal         3.3695      1.127      2.990      0.003       1.148       5.591\n",
            "swear           -4.8865      1.318     -3.707      0.000      -7.485      -2.288\n",
            "netspeak        -3.0955      1.208     -2.563      0.011      -5.477      -0.714\n",
            "assent          -3.3019      1.143     -2.890      0.004      -5.554      -1.049\n",
            "nonflu          -3.3141      1.162     -2.851      0.005      -5.605      -1.023\n",
            "filler          -4.9096      9.973     -0.492      0.623     -24.569      14.749\n",
            "AllPunc          0.3602      0.948      0.380      0.704      -1.508       2.228\n",
            "Period          -0.3707      0.949     -0.391      0.696      -2.241       1.499\n",
            "Comma           -0.3564      0.947     -0.376      0.707      -2.223       1.511\n",
            "Colon           -0.2920      0.950     -0.307      0.759      -2.165       1.581\n",
            "SemiC           -0.2807      0.952     -0.295      0.768      -2.157       1.596\n",
            "QMark           -0.5950      0.966     -0.616      0.538      -2.498       1.308\n",
            "Exclam          -0.2320      0.999     -0.232      0.817      -2.202       1.738\n",
            "Dash            -0.3709      0.947     -0.392      0.696      -2.238       1.496\n",
            "Quote           -0.3049      0.949     -0.321      0.748      -2.175       1.566\n",
            "Apostro         -0.3588      0.950     -0.378      0.706      -2.232       1.515\n",
            "Parenth         -0.1001      0.953     -0.105      0.916      -1.980       1.779\n",
            "OtherP          -0.2513      0.954     -0.263      0.792      -2.131       1.629\n",
            "==============================================================================\n",
            "Omnibus:                      266.241   Durbin-Watson:                   2.125\n",
            "Prob(Omnibus):                  0.000   Jarque-Bera (JB):             5289.447\n",
            "Skew:                           3.526   Prob(JB):                         0.00\n",
            "Kurtosis:                      22.038   Cond. No.                     1.21e+07\n",
            "==============================================================================\n",
            "\n",
            "Notes:\n",
            "[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.\n",
            "[2] The condition number is large, 1.21e+07. This might indicate that there are\n",
            "strong multicollinearity or other numerical problems.\n",
            "==============================\n",
            "Dependent Variable: People-centrism\n",
            "                            OLS Regression Results                            \n",
            "==============================================================================\n",
            "Dep. Variable:        People-centrism   R-squared:                       0.426\n",
            "Model:                            OLS   Adj. R-squared:                  0.173\n",
            "Method:                 Least Squares   F-statistic:                     1.682\n",
            "Date:                Mon, 19 Jan 2026   Prob (F-statistic):            0.00106\n",
            "Time:                        17:31:16   Log-Likelihood:                -62.689\n",
            "No. Observations:                 308   AIC:                             315.4\n",
            "Df Residuals:                     213   BIC:                             669.7\n",
            "Df Model:                          94                                         \n",
            "Covariance Type:            nonrobust                                         \n",
            "================================================================================\n",
            "                   coef    std err          t      P>|t|      [0.025      0.975]\n",
            "--------------------------------------------------------------------------------\n",
            "const           10.8531      5.201      2.087      0.038       0.600      21.106\n",
            "Year_x          -0.0041      0.002     -2.324      0.021      -0.008      -0.001\n",
            "WC           -2.561e-06   5.79e-06     -0.442      0.659    -1.4e-05    8.85e-06\n",
            "Analytic        -0.0023      0.012     -0.196      0.845      -0.026       0.021\n",
            "Clout           -0.0081      0.019     -0.432      0.666      -0.045       0.029\n",
            "Authentic      9.58e-05      0.018      0.005      0.996      -0.035       0.035\n",
            "Tone             0.0129      0.008      1.652      0.100      -0.002       0.028\n",
            "WPS              0.0012      0.009      0.131      0.896      -0.016       0.019\n",
            "Sixltr          -0.0375      0.028     -1.341      0.181      -0.093       0.018\n",
            "Dic             -0.0370      0.049     -0.757      0.450      -0.133       0.059\n",
            "function         0.1545      0.129      1.194      0.234      -0.101       0.409\n",
            "pronoun          3.3461      5.249      0.637      0.524      -7.000      13.692\n",
            "ppron           -5.1212      5.469     -0.936      0.350     -15.902       5.660\n",
            "i                1.5112      3.428      0.441      0.660      -5.246       8.268\n",
            "we               1.7046      3.449      0.494      0.622      -5.094       8.503\n",
            "you              1.4512      3.437      0.422      0.673      -5.324       8.227\n",
            "shehe            1.2238      3.447      0.355      0.723      -5.570       8.018\n",
            "they             1.4426      3.428      0.421      0.674      -5.315       8.200\n",
            "ipron           -3.3673      5.273     -0.639      0.524     -13.762       7.027\n",
            "article         -0.2137      0.134     -1.597      0.112      -0.477       0.050\n",
            "prep            -0.0972      0.114     -0.850      0.396      -0.323       0.128\n",
            "auxverb         -0.0898      0.139     -0.648      0.518      -0.363       0.183\n",
            "adverb          -0.0898      0.118     -0.760      0.448      -0.322       0.143\n",
            "conj            -0.0067      0.119     -0.057      0.955      -0.241       0.228\n",
            "negate          -0.2457      0.194     -1.267      0.207      -0.628       0.137\n",
            "verb            -0.0329      0.092     -0.358      0.721      -0.214       0.148\n",
            "adj              0.0191      0.084      0.227      0.820      -0.146       0.184\n",
            "compare          0.0222      0.105      0.211      0.833      -0.186       0.230\n",
            "interrog        -0.2319      0.109     -2.128      0.035      -0.447      -0.017\n",
            "number           0.0022      0.052      0.043      0.966      -0.101       0.105\n",
            "quant            0.0591      0.101      0.588      0.557      -0.139       0.257\n",
            "affect           0.9549      0.545      1.753      0.081      -0.119       2.029\n",
            "posemo          -1.1584      0.554     -2.090      0.038      -2.251      -0.066\n",
            "negemo          -0.7046      0.587     -1.200      0.231      -1.862       0.453\n",
            "anx              0.0371      0.266      0.140      0.889      -0.487       0.561\n",
            "anger           -0.1470      0.207     -0.712      0.477      -0.554       0.260\n",
            "sad              0.2028      0.302      0.670      0.503      -0.393       0.799\n",
            "social           0.1800      0.088      2.050      0.042       0.007       0.353\n",
            "family           0.1748      0.411      0.426      0.671      -0.634       0.984\n",
            "friend           0.3344      0.333      1.005      0.316      -0.321       0.990\n",
            "female           0.2876      0.333      0.865      0.388      -0.368       0.943\n",
            "male             0.0701      0.224      0.313      0.755      -0.372       0.512\n",
            "cogproc          0.1838      0.135      1.366      0.173      -0.081       0.449\n",
            "insight         -0.1871      0.153     -1.222      0.223      -0.489       0.115\n",
            "cause           -0.2814      0.145     -1.936      0.054      -0.568       0.005\n",
            "discrep         -0.1650      0.163     -1.014      0.312      -0.486       0.156\n",
            "tentat          -0.3522      0.126     -2.798      0.006      -0.600      -0.104\n",
            "certain         -0.0898      0.131     -0.686      0.493      -0.348       0.168\n",
            "differ          -0.2600      0.182     -1.429      0.154      -0.618       0.099\n",
            "percept          0.2842      0.374      0.760      0.448      -0.453       1.022\n",
            "see             -0.5407      0.414     -1.306      0.193      -1.357       0.275\n",
            "hear             0.0127      0.449      0.028      0.977      -0.872       0.897\n",
            "feel             0.1344      0.435      0.309      0.758      -0.723       0.992\n",
            "bio             -0.0655      0.633     -0.104      0.918      -1.313       1.182\n",
            "body            -0.3866      0.666     -0.580      0.562      -1.700       0.926\n",
            "health           0.0830      0.641      0.130      0.897      -1.180       1.347\n",
            "sexual          -0.3271      0.758     -0.431      0.667      -1.821       1.167\n",
            "ingest           0.0955      0.722      0.132      0.895      -1.327       1.518\n",
            "drives           0.1731      0.143      1.208      0.228      -0.109       0.455\n",
            "affiliation     -0.3666      0.169     -2.168      0.031      -0.700      -0.033\n",
            "achieve         -0.1085      0.117     -0.926      0.356      -0.339       0.122\n",
            "power           -0.0955      0.130     -0.734      0.464      -0.352       0.161\n",
            "reward          -0.0589      0.137     -0.431      0.667      -0.328       0.211\n",
            "risk            -0.3067      0.189     -1.619      0.107      -0.680       0.067\n",
            "focuspast       -0.0820      0.093     -0.879      0.380      -0.266       0.102\n",
            "focuspresent    -0.0362      0.083     -0.439      0.661      -0.199       0.126\n",
            "focusfuture     -0.1154      0.101     -1.139      0.256      -0.315       0.084\n",
            "relativ         -0.1621      0.224     -0.723      0.470      -0.604       0.280\n",
            "motion           0.3497      0.227      1.544      0.124      -0.097       0.796\n",
            "space            0.1400      0.223      0.626      0.532      -0.300       0.580\n",
            "time             0.1226      0.224      0.547      0.585      -0.319       0.564\n",
            "work            -0.0148      0.057     -0.259      0.796      -0.128       0.098\n",
            "leisure          0.0409      0.229      0.179      0.858      -0.410       0.491\n",
            "home             0.0786      0.242      0.324      0.746      -0.399       0.556\n",
            "money            0.1930      0.061      3.162      0.002       0.073       0.313\n",
            "relig            0.1261      0.160      0.790      0.431      -0.189       0.441\n",
            "death            0.0584      0.220      0.265      0.791      -0.376       0.493\n",
            "informal         2.5330      3.021      0.838      0.403      -3.422       8.488\n",
            "swear           -2.4407      3.534     -0.691      0.491      -9.406       4.525\n",
            "netspeak        -3.3410      3.238     -1.032      0.303      -9.724       3.042\n",
            "assent          -2.4419      3.063     -0.797      0.426      -8.481       3.597\n",
            "nonflu          -2.9974      3.116     -0.962      0.337      -9.140       3.145\n",
            "filler          23.1367     26.737      0.865      0.388     -29.566      75.839\n",
            "AllPunc          1.1383      2.540      0.448      0.655      -3.869       6.145\n",
            "Period          -1.1114      2.543     -0.437      0.663      -6.125       3.902\n",
            "Comma           -1.1340      2.539     -0.447      0.656      -6.139       3.871\n",
            "Colon           -1.0915      2.548     -0.428      0.669      -6.113       3.930\n",
            "SemiC           -1.3940      2.552     -0.546      0.586      -6.425       3.637\n",
            "QMark           -1.6231      2.588     -0.627      0.531      -6.725       3.479\n",
            "Exclam          -0.6365      2.679     -0.238      0.812      -5.918       4.645\n",
            "Dash            -1.0824      2.540     -0.426      0.670      -6.088       3.923\n",
            "Quote           -1.1196      2.544     -0.440      0.660      -6.134       3.895\n",
            "Apostro         -0.9735      2.548     -0.382      0.703      -5.996       4.049\n",
            "Parenth         -1.0920      2.556     -0.427      0.670      -6.130       3.946\n",
            "OtherP          -1.4527      2.557     -0.568      0.571      -6.493       3.588\n",
            "==============================================================================\n",
            "Omnibus:                        8.579   Durbin-Watson:                   2.087\n",
            "Prob(Omnibus):                  0.014   Jarque-Bera (JB):                5.593\n",
            "Skew:                           0.177   Prob(JB):                       0.0610\n",
            "Kurtosis:                       2.443   Cond. No.                     1.21e+07\n",
            "==============================================================================\n",
            "\n",
            "Notes:\n",
            "[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.\n",
            "[2] The condition number is large, 1.21e+07. This might indicate that there are\n",
            "strong multicollinearity or other numerical problems.\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "# Tables 3-6\n",
        "import statsmodels.api as sm\n",
        "\n",
        "for y_col in ['Left', 'Right', 'Anti-elitism', 'People-centrism']:\n",
        "  X = data[['Year_x', 'WC', 'Analytic', 'Clout', 'Authentic', 'Tone', 'WPS', 'Sixltr', 'Dic', 'function', 'pronoun', 'ppron', 'i', 'we', 'you', 'shehe', 'they', 'ipron', 'article', 'prep', 'auxverb', 'adverb', 'conj', 'negate', 'verb', 'adj', 'compare', 'interrog', 'number', 'quant', 'affect', 'posemo', 'negemo', 'anx', 'anger', 'sad', 'social', 'family', 'friend', 'female', 'male', 'cogproc', 'insight', 'cause', 'discrep', 'tentat', 'certain', 'differ', 'percept', 'see', 'hear', 'feel', 'bio', 'body', 'health', 'sexual', 'ingest', 'drives', 'affiliation', 'achieve', 'power', 'reward', 'risk', 'focuspast', 'focuspresent', 'focusfuture', 'relativ', 'motion', 'space', 'time', 'work', 'leisure', 'home', 'money', 'relig', 'death', 'informal', 'swear', 'netspeak', 'assent', 'nonflu', 'filler', 'AllPunc', 'Period', 'Comma', 'Colon', 'SemiC', 'QMark', 'Exclam', 'Dash', 'Quote', 'Apostro', 'Parenth', 'OtherP']]\n",
        "  Y = data[y_col]\n",
        "\n",
        "  # Add constant to X (for the intercept)\n",
        "  X = sm.add_constant(X)\n",
        "\n",
        "  # Fit the model\n",
        "  model = sm.OLS(Y, X).fit()\n",
        "\n",
        "  # Print the summary of the regression results\n",
        "  print(\"===\" * 10)\n",
        "  print(\"Dependent Variable:\", y_col)\n",
        "  # Extract coefficients and p-values\n",
        "  coefficients = model.params\n",
        "  p_values = model.pvalues\n",
        "\n",
        "  # Filter results where p-value is less than 0.05\n",
        "  significant_results = pd.DataFrame({'Coefficient': coefficients, 'p-value': p_values})\n",
        "  significant_results = significant_results[significant_results['p-value'] < 0.05]\n",
        "\n",
        "  # Convert to LaTeX table format\n",
        "  latex_table = significant_results.to_latex(float_format=\"%.4f\")\n",
        "\n",
        "  # Print LaTeX table\n",
        "  print(f\"\\\\section*{{Regression Results: {y_col}}}\")\n",
        "  print(latex_table)\n",
        "  print(\"\\n\\n\")"
      ],
      "metadata": {
        "id": "DisGKll49hGG",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "d29ae407-4933-4fb9-bc64-b59fcd02165b"
      },
      "execution_count": 32,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "==============================\n",
            "Dependent Variable: Left\n",
            "\\section*{Regression Results: Left}\n",
            "\\begin{tabular}{lrr}\n",
            "\\toprule\n",
            " & Coefficient & p-value \\\\\n",
            "\\midrule\n",
            "anger & -0.0765 & 0.0274 \\\\\n",
            "focuspresent & -0.0277 & 0.0454 \\\\\n",
            "informal & 2.8445 & 0.0000 \\\\\n",
            "swear & -2.8595 & 0.0000 \\\\\n",
            "netspeak & -2.4195 & 0.0000 \\\\\n",
            "assent & -2.8165 & 0.0000 \\\\\n",
            "nonflu & -2.9822 & 0.0000 \\\\\n",
            "\\bottomrule\n",
            "\\end{tabular}\n",
            "\n",
            "\n",
            "\n",
            "\n",
            "==============================\n",
            "Dependent Variable: Right\n",
            "\\section*{Regression Results: Right}\n",
            "\\begin{tabular}{lrr}\n",
            "\\toprule\n",
            " & Coefficient & p-value \\\\\n",
            "\\midrule\n",
            "article & -0.0136 & 0.0306 \\\\\n",
            "prep & -0.0140 & 0.0095 \\\\\n",
            "adverb & -0.0141 & 0.0110 \\\\\n",
            "tentat & -0.0153 & 0.0098 \\\\\n",
            "feel & 0.0562 & 0.0061 \\\\\n",
            "ingest & -0.0710 & 0.0361 \\\\\n",
            "power & 0.0137 & 0.0253 \\\\\n",
            "Parenth & 0.2583 & 0.0314 \\\\\n",
            "\\bottomrule\n",
            "\\end{tabular}\n",
            "\n",
            "\n",
            "\n",
            "\n",
            "==============================\n",
            "Dependent Variable: Anti-elitism\n",
            "\\section*{Regression Results: Anti-elitism}\n",
            "\\begin{tabular}{lrr}\n",
            "\\toprule\n",
            " & Coefficient & p-value \\\\\n",
            "\\midrule\n",
            "death & -0.1826 & 0.0273 \\\\\n",
            "informal & 3.3695 & 0.0031 \\\\\n",
            "swear & -4.8865 & 0.0003 \\\\\n",
            "netspeak & -3.0955 & 0.0111 \\\\\n",
            "assent & -3.3019 & 0.0043 \\\\\n",
            "nonflu & -3.3141 & 0.0048 \\\\\n",
            "\\bottomrule\n",
            "\\end{tabular}\n",
            "\n",
            "\n",
            "\n",
            "\n",
            "==============================\n",
            "Dependent Variable: People-centrism\n",
            "\\section*{Regression Results: People-centrism}\n",
            "\\begin{tabular}{lrr}\n",
            "\\toprule\n",
            " & Coefficient & p-value \\\\\n",
            "\\midrule\n",
            "const & 10.8531 & 0.0381 \\\\\n",
            "Year_x & -0.0041 & 0.0211 \\\\\n",
            "interrog & -0.2319 & 0.0345 \\\\\n",
            "posemo & -1.1584 & 0.0378 \\\\\n",
            "social & 0.1800 & 0.0416 \\\\\n",
            "tentat & -0.3522 & 0.0056 \\\\\n",
            "affiliation & -0.3666 & 0.0313 \\\\\n",
            "money & 0.1930 & 0.0018 \\\\\n",
            "\\bottomrule\n",
            "\\end{tabular}\n",
            "\n",
            "\n",
            "\n",
            "\n"
          ]
        }
      ]
    }
  ]
}